<?php

class ReceiveRedPacketAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $orderNo = $this->getRequest()->getPost('order_no');
        $response = \Biz\service\redPacket\RedPackets::createUserPacket($this->uid, $orderNo);
        $this->setSuccess($response);
    }
}